#!/usr/bin/bash


node_name="ndtest"
if test -z "$1"
then
  echo "param is nil"
else
  node_name=$1
fi
echo "start node ->"$node_name
#编译proto文件
./createpb.sh
#
skynet_path=../depends/skynet1.5.0/skynet
src_path=../src
#skynet启动的配置文件
config_path="$src_path/config/skynet.config"
export node_name=$node_name
echo $config_path
export LTUI_LOGFILE="/home/logs/ltui.log"

$skynet_path  "$config_path" "$node_name"